//
//  LXMallFrame.h
//  LvXi_newVersion
//
//  Created by 王敏 on 16/8/9.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "UIView+LxViewFrame.h"
/**屏幕尺寸*/
#define ScreenSize [UIScreen mainScreen].bounds.size
#define ScreenBounds [UIScreen mainScreen].bounds

/**屏幕宽度*/
#define ScreenWidth [UIScreen mainScreen].bounds.size.width

/**屏幕高度*/
#define ScreenHeight [UIScreen mainScreen].bounds.size.height

#define WeakSelf(x)  __weak typeof(*&self)x = self

@interface LXMallFrame : NSObject


/**
 *  截屏 截取指定区域的屏幕
 *
 *  @param frame 指定区域
 *
 *  @return 图片
 */
+(UIImage*)screenShotWithFrame:(CGRect)frame;





@end


/**一般的边距*/
#define  globalMargin  (10.0f)

/**侧滑控制器宽度比例*/
#define Ratio_leftVC   (296.f/375.f)

/**首页侧滑头部高度*/
#define Ratio_home_slide_header_height  (120.f/667.f)

/**首页侧滑头部用户头像高度*/
#define Ratio_home_slide_header_user_icon_width (48.f/296.f)

/**首页侧滑头部用户头像距离左边*/
#define Ratio_home_slide_header_user_icon_marginLeft (26.0/296.0f)

/**首页侧滑头部用户头像距离上边*/
#define Ratio_home_slide_header_user_icon_marginTop (44.0/120.f)
/**首页侧滑头部分享按钮宽度*/
#define Ratio_home_slide_header_user_share_width (44.0/296.f)

/**首页侧滑头部用户名高度*/
#define Ratio_home_slide_header_user_name_height (15.f/120.f)
/**首页侧滑头部用户名高度*/
#define Ratio_home_slide_leftImageCellHeight (42.f/667.f)

/**首页侧滑图片在上的cell的高度*/
#define Ratio_home_slide_TopImageCellHeight (47.f/667.f)

/**首页侧滑图片在上的cell的水平间距*/
#define Ratio_home_slide_TopImageCell_space (7.f/667.f)

/**首页侧滑tableView 分组尾部视图高度*/
#define Ratio_home_slide_tableView_sectionFooterHeight (26.f/667.f)

/**首页侧滑底部工具栏 图片距离左边*/
#define Ratio_home_slide_bottomTool_image_marginLeft (20.f/296.f)

/**首页侧滑底部工具栏 文字距离左边*/
#define Ratio_home_slide_bottomTool_text_marginLeft (10.f/296.f)

/**首页banner宽高之比*/
#define Ratio_home_banner (621.f/328.f)

/**首页侧滑菜单按钮宽高之比*/
#define Ration_home_slideMenu (53.f/39.f)
#define Ration_home_slideMenu_width (53.f/621.f)

#define Ratio_Home_Height(x) ((x/1104.f)*ScreenHeight)

#define Ratio_Home_Width(x) ((x/621.f)*ScreenWidth)


#define Ratio_Detail_Height(x) ((x/2208.f)*ScreenHeight)

#define Ratio_Detail_Width(x) ((x/1241.f)*ScreenWidth)

#define Ratio_AddCoupon_Height(x) ((x/667.f)*ScreenHeight)

#define Ratio_AddCoupon_Width(x) ((x/375.f)*ScreenWidth)
//***************************************************我是分割线***************************************************//

//..........................个人中心尺寸比例..........................//

//#define MineRatio(i) ((i / 621.0) * [UIScreen mainScreen].bounds.size.width)

#define MineRatio(i) ((i / 375.0) * [UIScreen mainScreen].bounds.size.width)

#define Ration_Share_width(x) ((x/375.f)*ScreenWidth)

#define Ration_Share_height(x) ((x/667.f)*ScreenHeight)

#define LXMainColor [UIColor colorWithRed:60 / 255.0 green:176 / 255.0 blue:52 / 255.0 alpha:1.0]

#define Category_width(x) Ration_Share_width(x)
#define Category_height(x) Ration_Share_height(x)

#define Comment_width(x) Ration_Share_width(x)
#define Comment_height(x) Ration_Share_height(x)

#define ShopCart_width(x) Ration_Share_width(x)
#define ShopCart_height(x) Ration_Share_height(x)

#define Bill_width(x) Ration_Share_width(x)
#define Bill_height(x) Ration_Share_height(x)

#define Sign_width(x) Ration_Share_width(x)
#define Sign_height(x) Ration_Share_height(x)

#define Withdraw_width(x) Ration_Share_width(x)
#define Withdraw_height(x) Ration_Share_height(x)

#define Coupon_width(x) Ration_Share_width(x)
#define Coupon_height(x) Ration_Share_height(x)

#define LXMainColor [UIColor colorWithRed:60 / 255.0 green:176 / 255.0 blue:52 / 255.0 alpha:1.0]